/****************************************************
          File Name:10-1.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 22 Dec 2014 08:34:54 PM CST
*****************************************************/

#ifndef T_H_
#define T_H_
#include<iostream>

class Test
{
    private:
        /*
        char m_name[20];
        char m_acc[20]; //p371(10.6.1) && p925
        */
        std::string m_name;
        std::string m_acc;
        double m_number;
    public:
        //Test(char name[], char acc[], double number = 0.0);
        // using const to make compiler create tmp value of 'string' type
        Test(const std::string & name = "nobody", const std::string & acc = "none", double number = 0.0);
        ~Test();
        void show(void) const;
        void store(double number);
        void take(double number);
};

#endif
